@extends('layouts.base')


@section('content')
        <!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Modal title</h4>
            </div>
            <div class="modal-body">
                ...
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <h2>标签列表</h2>
    <ul>
        @foreach($tags as $tag)
            <li>
                <p>{{$tag->id}}&nbsp &nbsp <a href="{{route('tag.show',$tag)}}">{{$tag->name}}</a></p>
                <a class="btn btn-default btn-sm glyphicon glyphicon-pencil" href={{route('tag.edit',$tag)}} role="button"></a>
                {{$tag->articles()->count()}}
            </li>
        @endforeach
    </ul>
</div>

@endsection